VistaDB 6
VistaDB.Provider Namespace / VistaDBDataAdapter Class / Update Method / Update(DataRow[],DataTableMapping) Method
An array of System.Data.DataRow objects used to update the data source.
The System.Data.IDataAdapter.TableMappings collection to use.


In This Topic
    Update(DataRow[],DataTableMapping) Method
    In This Topic
    Updates the values in the database by executing the respective INSERT, UPDATE, or DELETE statements for each inserted, updated, or deleted row in the specified array of System.Data.DataSet objects.
    Syntax
    'Declaration
     
    
    Protected Overloads Function Update( _
       ByVal dataRows() As System.Data.DataRow, _
       ByVal tableMapping As System.Data.Common.DataTableMapping _
    ) As System.Integer
    'Usage
     
    
    Dim instance As VistaDBDataAdapter
    Dim dataRows() As System.Data.DataRow
    Dim tableMapping As System.Data.Common.DataTableMapping
    Dim value As System.Integer
     
    value = instance.Update(dataRows, tableMapping)
    protected System.int Update( 
       System.Data.DataRow[] dataRows,
       System.Data.Common.DataTableMapping tableMapping
    )

    Parameters

    dataRows
    An array of System.Data.DataRow objects used to update the data source.
    tableMapping
    The System.Data.IDataAdapter.TableMappings collection to use.

    Return Value

    The number of rows successfully updated from the System.Data.DataSet.
    Exceptions
    ExceptionDescription
    The System.Data.DataSet is invalid.
    The source table is invalid.
    No System.Data.DataRow exists to update. -or- No System.Data.DataTable exists to update. -or- No System.Data.DataSet exists to use as a source.
    An attempt to execute an INSERT, UPDATE, or DELETE statement resulted in zero records affected.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also